import {Func} from './share.model';

export interface IDialog {
  title?: string;
  message?: string;
  width?: string;
  content?: any;
  model?: any;
  pageModel?: any;
  // show?:Func;
  yes?: Func;
  no?: Func;
}
export class Dialog {
  display: boolean;
  title= '';
  width= '';
  model?: any= {};
  pageModel?: any= {};
  content?: any;
  yes: Func;
  no: Func;
  show(data: IDialog) {
    this.display = true;
    this.title = data.title ;
    this.width = data.width ? data.width : '400';
    this.content = data.content;
    this.model = data.model;
    this.pageModel = data.pageModel;
    // this.show=data.show;
    this.yes = data.yes;
    this.no = data.no;
  }
  hide() {
    this.display = false;
  }
}
